<script type="text/html" id="tp-pager">
    <ul class="pagination">
        <li class="paginate_button previous"><a href="javascript:;">上一页</a></li>

        #for(var i=0;i<scope.pager.pages;i++){
            #if(i==scope.pager.page){
                <li class="paginate_button page_no active" data-page="{{=i}}">
                    <a href="javascript:;">{{=(i+1)}}</a></li> 
            #}else{
                <li class="paginate_button page_no" data-page="{{=i}}">
                    <a href="javascript:;">{{=(i+1)}}</a></li> 
            #}
        #}

        <li class="paginate_button next"><a href="javascript:;">下一页</a></li>

    </ul>
</script>

